﻿<%@ Control Language="C#" AutoEventWireup="true" 
CodeBehind="ProveedorListGrid.ascx.cs" 
Inherits="UILGestion.Admin.Proveedor.ProveedorListGrid" %>
<%@ Register Assembly="CustomControls" Namespace="CustomControls" TagPrefix="cc1" %>
<script src="../Scripts/controlGrid.js" type="text/javascript"></script>
<link href="../css/default.css" rel="stylesheet" type="text/css" />
<link href="../css/main.css" rel="stylesheet" type="text/css" />

<asp:Panel runat="server" ID="Panel" Font-Size="X-Small" Font-Names="Arial" >
<asp:DataPager ID="pager" PagedControlID="ListView1" runat="server" >
    <Fields>
      <cc1:PagerField NextPageImageUrl="~/Images/arrow_right2.gif" PreviousPageImageUrl="~/images/arrow_left.gif" />
    </Fields>
</asp:DataPager>
<asp:ListView ID="ListView1" runat="server" OnDataBound="ListView1_DataBound" 
    DataKeyNames="idInternal" onitemdatabound="ListView1_ItemDataBound">
    <LayoutTemplate>
        <table id="itemPlaceHolderContainer" border="0" runat="server" class="ms-crm-List-Header" >
            
            <tr id="Tr1" runat="server"  >
                <th id="Th3" runat="server">
                    <asp:LinkButton ID="lb3" CommandName="Sort" CommandArgument="ruc" ForeColor="Blue" runat="server">RUC</asp:LinkButton>
                </th>
                <th id="Th7" runat="server">
                    <asp:LinkButton ID="LinkButton5" CommandName="Sort" CommandArgument ="descripcion" ForeColor="Blue" runat="server">DESCRIPCION</asp:LinkButton>
                    </th>
               
                <th id="Th2" runat="server">
                    <asp:LinkButton ID="LinkButton1" CommandName="Sort" CommandArgument="formaPago" ForeColor="Blue" runat="server">FORMA PAGO</asp:LinkButton>
                </th>
                <th id="Th4" runat="server">
                    <asp:LinkButton ID="LinkButton2"  CommandName="Sort" CommandArgument="contacto" ForeColor="Blue" runat="server">CONTACTO</asp:LinkButton>
                </th>
              
                <th id="Th10" runat="server">
                    <asp:LinkButton ID="LinkButton8"  CommandName="Sort" CommandArgument="direccionOficina" ForeColor="Blue" runat="server">DIRECCION OFICINA</asp:LinkButton>
                </th>
                     

            </tr>
            <tr id="itemPlaceholder" runat="server">
            </tr>
        </table>
    </LayoutTemplate>
    <ItemTemplate>
        <tr style='background-color: <%# (Container.DataItemIndex % 2 == 0)?"#eee":"#fff" %>'>
            <td>
                

                <asp:Hyperlink runat= "server" ForeColor="Blue" 
                Text='<%# DataBinder.Eval(Container.DataItem,"ruc").ToString()%>'  
                 Target="_self"  ID="Comparativo"
                NavigateUrl='<%# "~/Admin/Proveedor/ProveedorReadForm.aspx?id=" + DataBinder.Eval (Container.DataItem,"idinternal").ToString()%>' 
               />   
                
                
            
            </td >
             <td width="250px">
                <%# Eval("descripcion")%><br />
            </td>
            
           
            <td align="right" width="120px">
            <%# Eval("formaPago")%><br />
            </td>
            <td Width="250px" align="left">
            <%# Eval("contacto")%><br />
           <%-- </td>
            <td Width="100px" align="right">
                <%# Eval("emailContacto")%>
            </td>--%>
            <td Width="250px" align="left">
                <%# Eval("direccionOficina")%>
            </td>
            <%--<td Width="50px" align="right">
                <%# Eval("proveedorSelec")%>
            </td>
            <td Width="50px">
                <%# Eval("fechaAprobStr")%>
            </td>--%>
           <%--  <td Width="50px">
                <%# Eval("totalDevolucionMon")%>
            </td>--%>
           
           <%-- <td >
                   <asp:ImageButton runat= "server" 
               
                 Target="_self"  ID="Hyperlink1"
                PostBackUrl='<%# "~/ObraAdmin/ComparativoEditForm.aspx?id=" + DataBinder.Eval (Container.DataItem,"idInternal").ToString() + 
                 "&idObra=" + DataBinder.Eval(Container.DataItem,"idObra").ToString()%>' 

                
                 CssClass="GridIcon ico-edit" BorderStyle="None" ImageUrl="~/Images/listing/ico-edit.png"
               />  
                                  
            </td>--%>
            <%--<td>
                <asp:HyperLink ID="AddressLink" runat="server" Target="_blank" NavigateUrl='<%# "http://www.google.com/maps?q=" + Eval("Address") + ",+" + Eval("CityStateZip") %>'
                    Text='<%# Eval("Address") %>'></asp:HyperLink>
                <br />
                <%# Eval("CityStateZip") %>
            </td>--%>
            <%--<td>
                <asp:Repeater ID="Phones" runat="server" DataSource='<%# Eval("Phones") %>'>
                    <ItemTemplate>
                        <%# Container.DataItem %><br />
                    </ItemTemplate>
                </asp:Repeater>
                <cc1:EmailHyperlink ID="EmailLink" runat="server" Text='<%# Eval("Email") %>' Email='<%# Eval("Email") %>'
                    Name='<%# Eval("Name") %>'></cc1:EmailHyperlink>
            </td>--%>
            
           <%-- <td>
                <asp:HyperLink ID="HyperLink1" runat="server" 
                    ToolTip="Add to/Remove from Active Tag"><%# (bool)Eval("HasTag") ? "Remove" : "Add" %></asp:HyperLink>
            </td>--%>
        </tr>
    </ItemTemplate>
    <EmptyDataTemplate>
        <table id="Table1" runat="server" style="">
            <tr>
                <td>
                     <h2 style="font-size: x-small; color: #960818">
                        No existe Informacion.</h2>
                </td>
            </tr>
        </table>
    </EmptyDataTemplate>
</asp:ListView>



</asp:Panel>

    
     